﻿using AbpApplication.AppServices;
using AbpApplication.InPut;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using wms_wpf.Apiservice;

namespace AbpWebapi.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class EssServiceController : ControllerBase
    {

        private readonly IEssService _esService;

        public EssServiceController(IEssService esService)
        {
            _esService = esService;
        }

        [HttpPost]
        public async Task<ApiResponseEss> TaskStatusChange(InPut_EssService InPut) => await _esService.TaskStatusChange(InPut);
        [HttpPost]
        public async Task<ApiResponse> AbnormalCapture(InPut_EssService2 InPut)=>await _esService.AbnormalCapture(InPut);
        [HttpPost]
        public async Task<ApiResponse> ReturnTag(InPut_EssService3 InPut)=>await _esService.ReturnTag(InPut);
        [HttpPost]
        public async Task<ApiResponseEss> Tote_finish(InPut_EssService4 InPut)=>await _esService.Tote_finish(InPut);
    }
}
